<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.xz.group12306.domain.User"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- 修改界面  张爱文 -->
<%--张爱文，修改用户页面 --%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css"
	href="../js/util/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="../js/util/easyui/themes/icon.css">


<script type="text/javascript"
	src="../js/util/jquery/jquery-3.2.1.min.js"></script>
<script type="text/javascript"
	src="../js/util/easyui/jquery.easyui.min.js"></script>
</head>
<body>

	<%-- <%
		User user = (User) session.getAttribute("user");
	%>
 --%>

<c:if test="${not empty user }">
	<!-- 新的界面   -->
	<h2>修改个人信息</h2>
	<p id="aa"></p>
	<div style="margin: 20px 0;"></div>
	<div class="easyui-panel" title="登录信息"
		style="width: 100%; max-width: 400px; padding: 30px 60px;">
		<form id="ff" method="post"
			action="http://localhost:8080/Our12306/ManagerUpdateSServlet">


			<div style="margin-bottom: 20px">
				<table>
					<tr>
						<td>头像：</td>
						<td width="239" rowspan="6" align="center"><img
							src="../images/photo.jpg" width="120" height="120"></td>
					</tr>
				</table>

			</div>



			<div style="margin-bottom: 20px">
				<input value="${user.id }" class="easyui-textbox" name="id"
					style="width: 100%" data-options="label:'ID:',required:true">
			</div>

			<div style="margin-bottom: 20px">
				<input value="${user.username }" class="easyui-textbox"
					name="username" style="width: 100%"
					data-options="label:'登录名:',required:true">
			</div>


			<div style="margin-bottom: 20px">
				<input class="easyui-textbox" name="password" style="width: 100%"
					data-options="label:'密码初始化:',required:true,validType:'password'">
			</div>
			<div style="margin-bottom: 20px">
				<select class="easyui-combobox" name="language" label="*用户权限："
					style="width: 100%"><option value="ar">管理员</option>
					<option value="bg">普通用户</option></select>
			</div>
			<div style="margin-bottom: 20px">
				<input class="easyui-textbox" name="realname"
					style="width: 100%; height: 60px"
					data-options="label:'*真实姓名:',multiline:true">
			</div>
			<div style="margin-bottom: 20px">
				*性别:&nbsp;&nbsp;&nbsp;<input type="radio" name="sex">&nbsp;男
				<input type="radio" name="sex">&nbsp;女
			</div>
			<div style="margin-bottom: 20px">
				<select class="easyui-combobox" name="language" label="*省份："
					style="width: 100%"><option value="ar">江苏</option>
					<option value="bg">湖南</option></select>
			</div>
			<div style="margin-bottom: 20px">
				<select class="easyui-combobox" name="language" label="城市："
					style="width: 100%"><option value="br">市值</option>
					<option value="bg">市值</option></select>
			</div>
			<div style="margin-bottom: 20px">
				<select class="easyui-combobox" name="language" label="*证件类型："
					style="width: 100%">
					<option value="cr">二代身份证</option>
					<option value="bg">港澳通行证</option>
					<option value="dg">台湾通行证</option>
					<option value="eg">护照</option>
				</select>
			</div>

			<div style="margin-bottom: 20px">
				<input value="${user.cert }" class="easyui-textbox"
					name="cert" style="width: 100%; height: 60px"
					data-options="label:'*证件号码:',multiline:true">

			</div>
			<div style="margin-bottom: 20px">
				<select class="easyui-combobox" name="language" label="旅客类型："
					style="width: 100%">
					<option value="cr">成人</option>
					<option value="bg">儿童</option>
					<option value="st">学生</option>
					<option value="cj">残疾军人、伤残人民警察</option>
				</select>
			</div>


		

		<div style="text-align: center; padding: 5px 0">
			<a href="javascript:void(0)" class="easyui-linkbutton"
				onclick="submitForm()" style="width: 80px" target="_blank">Submit</a>
			<a href="javascript:void(0)" class="easyui-linkbutton"
				onclick="clearForm()" style="width: 80px">Clear</a> 
			<a href="AdminIndex.jsp" class="easyui-linkbutton"
				onclick="clearForm()" style="width: 80px">Return</a>
				
		</div>
		</form>
	</div>
	
	<script>
		function submitForm() {
			$('#ff').form('submit');
			alert("修改成功");
		}
		function clearForm() {
			$('#ff').form('clear');
		}
	</script>

</c:if>

</body>
</html>